<div class="box box-solid">
    <div class="box-body table-responsive no-padding">
        <form role="form" action="#" method="post">
            <input type="hidden" name="user[sid]" value="<?php echo $user['sid']; ?>" />
            <div class="box-body">
                    <div class="form-group">
                        <label>电话</label>
                        <input type="text" name='user[mobile]' class="form-control" maxlength="20" value="<?php echo $user['name']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>姓名</label>
                        <input type="text" name='user[name]' class="form-control" maxlength="20" value="<?php echo $user['name']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>性别</label>
                    <div class="controls">
                        <select  name='user[gender]'  class="form-control  name">
                            <option <?php if(!empty($user['gender'])&&$user['gender']==1) echo 'selected' ?> value="1">男</option>
                            <option <?php if(!empty($user['gender'])&&$user['gender']==2) echo 'selected' ?> value="2">女</option>
                            <option <?php if($user['gender']!=1&&$user['gender']!=2) echo 'selected' ?> value="3">未知</option>
                        </select>
                    </div>
                    </div>

                    <div class="form-group">
                        <label>昵称</label>
                        <input type="text" name='user[nickname]' class="form-control" maxlength="20" value="<?php echo $user['nickname']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>开户行</label>
                        <input type="text" name='user[open_bank]' class="form-control" maxlength="20" value="<?php echo $user['open_bank']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>银行卡</label>
                        <input type="text" name='user[bank_card]' class="form-control" maxlength="20" value="<?php echo $user['bank_card']; ?>">
                        <p class="help-blockk"></p>
                    </div>

                    <div class="form-group">
                        <label>身份证号</label>
                        <input type="text" name='user[idcard]' class="form-control" maxlength="20" value="<?php echo $user['idcard']; ?>">
                        <p class="help-blockk"></p>
                    </div>
                        <?php $p = $user['idcard_photo'];?>
                        <div class="form-group">
                            <label>身份证</label>
                             <?php $this->widget('GalleryWidget',array('inputName'=>'user[idcard_photo]','gallery'=>$p)); ?>
                              
                            <p class="help-blockk"></p>
                        </div> 


                    <div class="form-group">
                    <label class="control-label" for="form-field-1">状态:</label>
                    <div class="controls">
                        <select  name='user[status]'  class="form-control  name">
                            <option <?php if(!empty($user['status'])&&$user['status']==1) echo 'selected' ?> value="1">正常</option>
                            <option <?php if(!empty($user['status'])&&$user['status']==2) echo 'selected' ?> value="2">禁用</option>
                        </select>
                    </div>
                </div>

               

                    <div class="box-footer">
                        <button class="btn btn-primary" type="submit">添加</button>
                        <a href="<?php echo $this->createUrl('user/list'); ?>">返回用户列表</a>
                    </div>
            </div>
        </form>
    </div>
</div>
